<template>
  <div>
    <el-select
      v-model="text"
      multiple
      filterable
      remote
      reserve-keyword
      placeholder="请输入关键词"
      :remote-method="remoteMethod"
      :loading="loading">
      <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
      <i slot="prefix" class="el-icon-search el-input__icon" @click="openSelect" />
    </el-select>
<!--    <el-input v-model="text" placeholder="输入用户名">
      <i slot="prefix" class="el-icon-search el-input__icon" @click="openSelect" />
    </el-input>-->
  </div>

</template>

<script>

export default {
  name: 'UserSelect',
  components: {},
  data() {
    return {
      text: null,
      loading: false,
      showDialog: false,
      options: [],
    }
  },
  computed: {

  },
  mounted() {

  },
  methods: {
    openSelect() {

    },
    remoteMethod() {

    },

  }
}
</script>
<style scoped>
::v-deep .el-select__input{
  text-indent: 1em;
}
</style>
